<?php /*a:2:{s:57:"D:\projects\junhe\app\data\view\article\article\cate.html";i:1740136709;s:58:"D:\projects\junhe\app\data\view\..\..\admin\view\main.html";i:1740136709;}*/ ?>
<div class="layui-card">
    
    
    <?php if(!(empty($title) || (($title instanceof \think\Collection || $title instanceof \think\Paginator ) && $title->isEmpty()))): ?>
    <div class="layui-card-header">
        <span class="layui-icon font-s10 color-desc margin-right-5">&#xe65b;</span><?php echo htmlentities((isset($title) && ($title !== '')?$title:''),ENT_QUOTES); ?>
        <div class="pull-right"></div>
    </div>
    <?php endif; ?>
    
    <div class="layui-card-line"></div>
    <div class="layui-card-body">
        <div class="layui-card-html">
            
<style>
    .layui-card-html{
        white-space:nowrap!important;
    }
    .layui-layout>.layui-body>.think-page-body>.layui-card>.layui-card-body>.layui-card-html {
        padding: 5px;
        min-width: 100%;
        position: absolute;
        box-sizing: border-box;
    }
    .think-box-shadow{
        padding: 0 !important;
        scroll: inherit;
        overflow: scroll;
        height: 88vh;
        overflow-x: hidden;
    }
    .think-box-shadow table{
        margin: 0!important;
    }
    .layui-table td, .layui-table th {
        padding: 9px 5px !important;
    }
    .layui-table td a, .layui-table th a {
        color: #666;
    }
    .think-box-shadow::-webkit-scrollbar {
        width: 3px!important;
    }
    .think-box-shadow::-webkit-scrollbar-thumb {
        border-radius: 10px!important;
        background: @headNormalBackColor!important;
    }
    .think-box-shadow::-webkit-scrollbar-track {
        border-radius: 10px!important;
        background: #fbfbfb!important;
    }
    .act{
        background: #666;
        color: #fff !important;
    }
    .act a{
        color: #fff !important;
    }

</style>
<?php if($list): ?>
<div class="think-box-shadow layui-col-sm2" id="catList" style="width: 13% !important;min-width:10%;">
    <table class="layui-table margin-top-10" lay-skin="line">
        <tbody>
        <?php foreach($list as $keyTop=>$vo): ?>
            <tr>
                <td class='text-left nowrap'><?php echo htmlentities($vo['id'],ENT_QUOTES); ?></td>
                <td class='text-left nowrap'>
                    <?php if($category_ids == 0 || in_array($vo['id'],$category_ids)): if($vo['is_page'] == 1): ?>
                                <!-- 单页跳转 -->
                                &nbsp;&nbsp;<a href="/admin.html#/data/article.page/show.html?spm=m-64-54&template_id=<?php echo htmlentities($vo['template_id'],ENT_QUOTES); ?>&get_cat_id=<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>" target="content"><b><?php echo htmlentities((isset($vo['title']) && ($vo['title'] !== '')?$vo['title']:''),ENT_QUOTES); ?></b></a>
                        <?php else: if($vo['childCount'] > 0): ?>
                                &nbsp;&nbsp;<a href="/admin.html#/data/article.article/index.html?spm=m-64-54&title=&cat=<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>&template_id=<?php echo htmlentities($vo['template_id'],ENT_QUOTES); ?>&content_template_id=<?php echo htmlentities($vo['content_template_id'],ENT_QUOTES); ?>&get_cat_id=<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>" target="content"><b><?php echo htmlentities((isset($vo['title']) && ($vo['title'] !== '')?$vo['title']:''),ENT_QUOTES); ?></b></a>
                            <?php else: ?>
                                &nbsp;&nbsp;<a href="/admin.html#/data/article.article/index.html?spm=m-64-54&title=&cat=<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>&template_id=<?php echo htmlentities($vo['template_id'],ENT_QUOTES); ?>&content_template_id=<?php echo htmlentities($vo['content_template_id'],ENT_QUOTES); ?>&get_cat_id=<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>" target="content"><b><?php echo htmlentities((isset($vo['title']) && ($vo['title'] !== '')?$vo['title']:''),ENT_QUOTES); ?></b></a>
                            <?php endif; ?>
                        <?php endif; else: ?>
                        <!--无栏目权限-->
                        <a href="/admin.html#/data/article.article/index.html?spm=m-64-54&is_error=1" target="content"><b><?php echo htmlentities((isset($vo['title']) && ($vo['title'] !== '')?$vo['title']:''),ENT_QUOTES); ?></b></a>
                    <?php endif; ?>
                </td>


            </tr>
            <?php foreach($vo['childList'] as $key=>$vc): ?>
            <tr>
                <td class='text-left nowrap'><?php echo htmlentities($vc['id'],ENT_QUOTES); ?></td>

                <td class='text-left nowrap'>
                    <?php if($category_ids == 0 || (in_array($vc['id'],$category_ids) && in_array($vo['id'],$category_ids))): if($vc['is_page'] == 1): ?>
                            <!-- 单页跳转 -->
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/admin.html#/data/article.page/show.html?spm=m-64-54&template_id=<?php echo htmlentities($vc['template_id'],ENT_QUOTES); ?>&get_cat_id=<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>" target="content"><b>↪ <?php echo htmlentities((isset($vc['title']) && ($vc['title'] !== '')?$vc['title']:''),ENT_QUOTES); ?></b></a>
                        <?php else: if($vc['childCount'] > 0): ?>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/admin.html#/data/article.article/index.html?spm=m-64-54&title=&cat=<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>&template_id=<?php echo htmlentities($vc['template_id'],ENT_QUOTES); ?>&content_template_id=<?php echo htmlentities($vc['content_template_id'],ENT_QUOTES); ?>&get_cat_id=<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>" target="content"><b>↪ <?php echo htmlentities((isset($vc['title']) && ($vc['title'] !== '')?$vc['title']:''),ENT_QUOTES); ?></b></a>
                            <?php else: ?>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/admin.html#/data/article.article/index.html?spm=m-64-54&title=&cat=<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>&template_id=<?php echo htmlentities($vc['template_id'],ENT_QUOTES); ?>&content_template_id=<?php echo htmlentities($vc['content_template_id'],ENT_QUOTES); ?>&get_cat_id=<?php echo htmlentities($vc['id'],ENT_QUOTES); ?>" target="content"><b>↪ <?php echo htmlentities((isset($vc['title']) && ($vc['title'] !== '')?$vc['title']:''),ENT_QUOTES); ?></b></a>
                            <?php endif; ?>
                        <?php endif; else: ?>
                        <!--无栏目权限-->
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/admin.html#/data/article.article/index.html?spm=m-64-54&is_error=1" target="content"><b>↪ <?php echo htmlentities((isset($vc['title']) && ($vc['title'] !== '')?$vc['title']:''),ENT_QUOTES); ?></b></a>
                    <?php endif; ?>
                </td>

            </tr>

                <?php foreach($vc['childList'] as $k=>$v): ?>
                <tr>
                    <td class='text-left nowrap'><?php echo htmlentities($v['id'],ENT_QUOTES); ?></td>
                    <td class='text-left nowrap'>
                        <?php if($category_ids == 0 || (in_array($v['id'],$category_ids) && in_array($vc['id'],$category_ids) && in_array($vo['id'],$category_ids))): if($v['is_page'] == 1): ?>
                                <!-- 单页跳转 -->
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/admin.html#/data/article.page/show.html?spm=m-64-54&template_id=<?php echo htmlentities($v['template_id'],ENT_QUOTES); ?>&get_cat_id=<?php echo htmlentities($v['id'],ENT_QUOTES); ?>" target="content"><b>┕━ <?php echo htmlentities((isset($v['title']) && ($v['title'] !== '')?$v['title']:''),ENT_QUOTES); ?></b></a>
                            <?php else: ?>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/admin.html#/data/article.article/index.html?spm=m-64-54&title=&cat=<?php echo htmlentities($v['id'],ENT_QUOTES); ?>&template_id=<?php echo htmlentities($v['template_id'],ENT_QUOTES); ?>&content_template_id=<?php echo htmlentities($v['content_template_id'],ENT_QUOTES); ?>&get_cat_id=<?php echo htmlentities($v['id'],ENT_QUOTES); ?>" target="content"><b>┕━ <?php echo htmlentities((isset($v['title']) && ($v['title'] !== '')?$v['title']:''),ENT_QUOTES); ?></b></a>
                            <?php endif; else: ?>
                            <!--无栏目权限-->
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/admin.html#/data/article.article/index.html?spm=m-64-54&is_error=1" target="content"><b>┕━ <?php echo htmlentities((isset($v['title']) && ($v['title'] !== '')?$v['title']:''),ENT_QUOTES); ?></b></a>
                        <?php endif; ?>
                    </td>

                </tr>
                    <?php foreach($v['childList'] as $k4=>$v4): ?>
                    <tr>
                        <td class='text-left nowrap'><?php echo htmlentities($v4['id'],ENT_QUOTES); ?></td>
                        <td class='text-left nowrap'>
                            <?php if($category_ids == 0 || (in_array($v4['id'],$category_ids) && in_array($v['id'],$category_ids) && in_array($vc['id'],$category_ids) && in_array($vo['id'],$category_ids))): if($v4['is_page'] == 1): ?>
                                <!-- 单页跳转 -->
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/admin.html#/data/article.page/show.html?spm=m-64-54&template_id=<?php echo htmlentities($v4['template_id'],ENT_QUOTES); ?>&get_cat_id=<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>" target="content"><b>└─ <?php echo htmlentities((isset($v4['title']) && ($v4['title'] !== '')?$v4['title']:''),ENT_QUOTES); ?></b></a>
                                <?php else: ?>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/admin.html#/data/article.article/index.html?spm=m-64-54&title=&cat=<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>&template_id=<?php echo htmlentities($v4['template_id'],ENT_QUOTES); ?>&content_template_id=<?php echo htmlentities($v4['content_template_id'],ENT_QUOTES); ?>&get_cat_id=<?php echo htmlentities($v4['id'],ENT_QUOTES); ?>" target="content"><b>└─ <?php echo htmlentities((isset($v4['title']) && ($v4['title'] !== '')?$v4['title']:''),ENT_QUOTES); ?></b></a>
                                <?php endif; else: ?>
                                <!--无栏目权限-->
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/admin.html#/data/article.article/index.html?spm=m-64-54&is_error=1" target="content"><b>┕━ <?php echo htmlentities((isset($v['title']) && ($v['title'] !== '')?$v['title']:''),ENT_QUOTES); ?></b></a>
                            <?php endif; ?>
                        </td>

                    </tr>
                    <?php endforeach; ?>
                <?php endforeach; ?>

            <?php endforeach; ?>

        <?php endforeach; ?>
        </tbody>
    </table>
    <?php if(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty())): ?><span class="notdata">No record</span><?php else: ?><?php echo (isset($pagehtml) && ($pagehtml !== '')?$pagehtml:''); ?><?php endif; ?>
</div>

<div class="think-box-shadow layui-col-sm10 overhide" style="width: 86.9% !important;">
    <iframe name="content" src="/admin.html#/data/article.article/index.html?spm=m-64-54&title=&cat=16&template_id=2&content_template_id=6&get_cat_id=16" frameborder="auto" style="width: 100%;height:100%;overflow: hidden;">

    </iframe>
</div>
<?php endif; if(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty())): ?>
<div class="think-box-shadow">
    <table class="layui-table" lay-skin="line">
        <tbody>
        <tr>
            <td class='text-center nowrap'>
                <span class="notdata margin-10">请在栏目管理中创建新栏目</span>

            </td>
        </tr>

        </tbody>
    </table>
</div>
<?php endif; ?>
<script>
    $("#catList table tbody tr td a").click(function (){
        $(".act").removeClass("act");
        $(this).parent().addClass("act");
        $(this).parent().prev().addClass("act");

    });

    $(function () {
        //页面加载自动运行该代码
        $("#catList table tbody tr td a").each(function (key, value){
           console.log(value);
           if(key == 0){
               value.click();
           }
           return false;
        });

        // var getColor = $(".layui-header").css("background-color");
        // // alert(getColor)
        // $(".layui-table td a").css("color",getColor);
        // $(".layui-table th a").css("color",getColor);
        // $(".act").css("background-color",getColor);

    });


</script>

        </div>
    </div>
    
</div>